package com.example.gpssystem;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;
import org.springframework.data.redis.repository.configuration.EnableRedisRepositories;

@SpringBootApplication
@EnableMongoRepositories(basePackages = {
    "com.example.gpssystem.repository.mongo",
    "com.example.gpssystem.model"  // 新增模型包路径
})
@EnableRedisRepositories(basePackages = "com.example.gpssystem.repository.redis")
public class GpssystemApplication {

    public static void main(String[] args) {
        SpringApplication.run(GpssystemApplication.class, args);
    }

}
